Skip to content

Conversation

@ngc7331
Copy link
Contributor

@ngc7331 ngc7331 commented Aug 13, 2025

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

In syncthing v2.0.0, they have dropped old single-dash long options. The -home used in the original startup script will be treated as -h -o -m -e, causing service start failure.

Modernised command line options parsing. Old single-dash long options are
no longer supported, e.g. -home must be given as --home. Some options
have been renamed, others have become subcommands. All serve options are
now also accepted as environment variables. See syncthing --help and
syncthing serve --help for details.

Benefits of this PR and context:

This PR changed old single-dash long options to double-dash ones.

How Has This Been Tested?

I've ran docker build -t ngc7331/syncthing --no-cache --pull . and docker run --name=syncthing-test -d -p 8385:8384 ngc7331/syncthing. Access through webui and it works well for me.

Source / References:

Signed-off-by: ngc7331 <ngc7331@outlook.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

@LinuxServer-CI
Copy link
Contributor

I am a bot, here are the test results for this PR:
https://ci-tests.linuxserver.io/lspipepr/syncthing/v2.0.0-pkg-7c7a51df-dev-3e5938c20c158c73cb56f7427f3203662b59d684-pr-94/index.html
https://ci-tests.linuxserver.io/lspipepr/syncthing/v2.0.0-pkg-7c7a51df-dev-3e5938c20c158c73cb56f7427f3203662b59d684-pr-94/shellcheck-result.xml

Tag Passed
amd64-v2.0.0-pkg-7c7a51df-dev-3e5938c20c158c73cb56f7427f3203662b59d684-pr-94
arm64v8-v2.0.0-pkg-7c7a51df-dev-3e5938c20c158c73cb56f7427f3203662b59d684-pr-94

@github-project-automation github-project-automation bot moved this from PRs to PRs Approved in Issue & PR Tracker Aug 13, 2025
@aptalca aptalca merged commit 676ad09 into linuxserver:master Aug 13, 2025
5 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants